@import "variables";
@import "~taro-ui/dist/style/components/tabs.scss";
@import "~taro-ui/dist/style/components/float-layout.scss";
@import "~taro-ui/dist/style/components/list.scss";
@import "~taro-ui/dist/style/components/nav-bar.scss";
@import "~taro-ui/dist/style/components/icon.scss";
@import "~taro-ui/dist/style/components/avatar.scss";
@import "~taro-ui/dist/style/components/toast.scss";
@import "~taro-ui/dist/style/components/icon.scss";
@import "~taro-ui/dist/style/components/accordion.scss";
/** 单色 */
@import url("https://at.alicdn.com/t/font_3246992_lq5kmstfqjm.css?spm=a313x.7781069.1998910419.55&file=font_3246992_lq5kmstfqjm.css");
/** 彩色 */
@import url("https://at.alicdn.com/t/font_3247018_gif2jy6yq1k.css?spm=a313x.7781069.1998910419.88&file=font_3247018_gif2jy6yq1k.css");

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
body {
  font-family: PingFangSC-Regular, PingFang SC;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#app {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.bottom-div {
  height: 75px;
}
input[type="checkbox"] {
  height: 16px;
  width: 16px;
  border-radius: 2px;
  position: relative;
  box-sizing: border-box;
  padding: 0;
}

input[type="checkbox"]:after {
  position: absolute;
  width: 14px;
  height: 14px;
  top: 0;
  left: 0;
  content: " ";

  background-color: #fff;
  border: 1px solid #d9d9d9;
}

input[type="checkbox"]:checked::before {
  background-color: $checkbox-active-color;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  content: "";
}
input[type="checkbox"]:checked::after {
  position: absolute;
  display: table;
  height: 10px;
  width: 4px;
  border: 3px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) scale(0.8) translate(60%, -30%);
  opacity: 1;
  content: " ";
  background-color: $checkbox-active-color;
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.display-flex {
  display: flex;
}
.display-i-b {
  display: inline-block;
}
.vertical-align-m {
  vertical-align: middle;
}
/************************************************************
** 请将全局样式拷贝到项目的全局 CSS 文件或者当前页面的顶部 **
** 否则页面将无法正常显示                                  **
************************************************************/

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    "Microsoft Yahei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

view,
image,
text {
  box-sizing: border-box;
  flex-shrink: 0;
}

#app {
  width: 100vw;
  height: 100%;
  position: unset !important;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.justify-start {
  display: flex;
  justify-content: flex-start;
}

.justify-center {
  display: flex;
  justify-content: center;
}

.justify-end {
  display: flex;
  justify-content: flex-end;
}

.justify-evenly {
  display: flex;
  justify-content: space-evenly;
}

.justify-around {
  display: flex;
  justify-content: space-around;
}

.justify-between {
  display: flex;
  justify-content: space-between;
}

.items-start {
  display: flex;
  align-items: flex-start;
}

.items-center {
  display: flex;
  align-items: center;
}

.items-end {
  display: flex;
  align-items: flex-end;
}

.font-bold {
  font-weight: bold;
  font-family: PingFangSC-Regular, PingFang SC;
}

/** 抽屉自适应高度 */
.at-float-layout.adapt-height .at-float-layout__container {
  max-height: calc(100% - 44px);
  min-height: auto;
  .layout-body,
  .layout-body__content {
    min-height: auto;
  }
}
.at-float-layout {
  z-index: 999;
}
.hide-scroll-bar {
  scrollbar-width: none; /* firefox */
  -ms-overflow-style: none; /* IE 10+ */
  &::-webkit-scrollbar {
    display: none; /* Chrome Safari */
  }
}

.at-float-layout__container,
.at-float-layout .layout-body,
.at-float-layout .layout-body__content,
.at-float-layout .layout-body__content {
  max-height: 100% !important;
  min-height: unset !important;
}
.layout-body {
  flex: 1;
  overflow: scroll;
}
.at-float-layout__container {
  max-height: calc(100% - 43px) !important;
  border-radius: 12px 12px 0 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.layout-header {
  padding: 0 !important;
  border-radius: 12px 12px 0 0 !important;
  height: 48px;
}

.layout-header__title {
  border-radius: 12px 12px 0 0 !important;
}

.layout-body {
  padding: 0 !important;
}

.common-active {
  position: relative;
  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 57px;
    background: #3972f9;
    border-radius: 0px 5px 5px 0px;
  }
  &::after {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    position: absolute;
    right: 16px;
    top: 20px;
    background: url(../src/assets/check.svg);
    background-size: cover;
  }
}
